package com.kaijie.service.impl;

import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kaijie.dao.RoomInfnDao;
import com.kaijie.entity.RoomInfnEntity;
import com.kaijie.service.RoomInfnService;
import com.kaijie.utils.PageUtils;
import com.kaijie.utils.Query;


@Service("roomInfnService")
public class RoomInfnServiceImpl extends ServiceImpl<RoomInfnDao, RoomInfnEntity> implements RoomInfnService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RoomInfnEntity> page = this.page(
                new Query<RoomInfnEntity>().getPage(params),
                new QueryWrapper<RoomInfnEntity>()
        );

        return new PageUtils(page);
    }

}
